import request from '@/utils/request'
export function getPageList(params) {
  return request({
    method: 'get',
    url: '/pages',
    params

  })
}

export function addPage(data) {
  return request({
    method: 'post',
    url: '/pages',
    data
  })
}
export function getPageDetail(id) {
  return request({
    method: 'get',
    url: `/pages/${id}`
  })
}
export function editPage(data) {
  return request({
    method: 'put',
    url: `/pages/${data.id}`,
    data
  })
}
export function delPage(id) {
  return request({
    method: 'delete',
    url: `/pages/${id}`
  })
}
export function getPageCount() {
  return request({
    url: '/pages/count'
  })
}
export function getAppointPage(id) {
  return request({
    method: 'get',
    url: ` /pages/${id}`
  })
}

